import random
a=random.randint(1,100)
while a:
    print("请输入1到100的整数：")
    b=input()
    if  b.isdigit()==False or int(b)>100 or int(b)<1:
        print("请输入整数")
        continue
    if int(b)==a:
        print("恭喜你小子猜对了")
        break
    else:
        if int(b)>a:
            print("太大了，小子")
        else:
            print("太小了小子")
